package com.moana.buyTicket.entity;

import java.io.Serializable;
import java.sql.Date;

import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(table="M_TICKET")
public class Ticket implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Ticket(){
		
	}
	
	@PrimaryKey
	//@Column(name="MT_ID")
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Integer id;
	
	//@Column(name="MT_NO")
	private String num;
	
	//@Column(name="MT_FILMID")
	private Integer filmID;
	
	//@Column(name="MT_LINE")
	private Integer line;
	
	//@Column(name="MT_ROW")
	private Integer row;
	
	//@Column(name="MT_TIME")
	private String time;
	
	//状态（0：未购买；1：已购买；2：已兑换；3：已失效）
	//@Column(name="MT_STATUS")
	private Integer status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public Integer getFilmID() {
		return filmID;
	}

	public void setFilmID(Integer filmID) {
		this.filmID = filmID;
	}

	public Integer getLine() {
		return line;
	}

	public void setLine(Integer line) {
		this.line = line;
	}

	public Integer getRow() {
		return row;
	}

	public void setRow(Integer row) {
		this.row = row;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Ticket [id=" + id + ", num=" + num + ", filmID=" + filmID
				+ ", line=" + line + ", row=" + row + ", time=" + time
				+ ", status=" + status + "]";
	}
	
	
}
